package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.CreditCharityActivity;

/**
 * 公益活动Mapper接口
 * 
 * @author ruoyi
 * @date 2024-01-26
 */
public interface CreditCharityActivityMapper 
{
    /**
     * 查询公益活动
     * 
     * @param activityId 公益活动主键
     * @return 公益活动
     */
    public CreditCharityActivity selectCreditCharityActivityByActivityId(Long activityId);

    /**
     * 查询公益活动列表
     * 
     * @param creditCharityActivity 公益活动
     * @return 公益活动集合
     */
    public List<CreditCharityActivity> selectCreditCharityActivityList(CreditCharityActivity creditCharityActivity);

    /**
     * 查询可用公益活动列表
     * 
     * @return 公益活动集合
     */
    public List<CreditCharityActivity> selectAvailableCharityActivities();

    /**
     * 根据分类查询公益活动
     * 
     * @param activityCategory 活动分类
     * @return 公益活动集合
     */
    public List<CreditCharityActivity> selectCharityActivitiesByCategory(String activityCategory);

    /**
     * 新增公益活动
     * 
     * @param creditCharityActivity 公益活动
     * @return 结果
     */
    public int insertCreditCharityActivity(CreditCharityActivity creditCharityActivity);

    /**
     * 修改公益活动
     * 
     * @param creditCharityActivity 公益活动
     * @return 结果
     */
    public int updateCreditCharityActivity(CreditCharityActivity creditCharityActivity);

    /**
     * 删除公益活动
     * 
     * @param activityId 公益活动主键
     * @return 结果
     */
    public int deleteCreditCharityActivityByActivityId(Long activityId);

    /**
     * 批量删除公益活动
     * 
     * @param activityIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCreditCharityActivityByActivityIds(Long[] activityIds);

    /**
     * 更新活动参与人数
     * 
     * @param activityId 活动ID
     * @return 结果
     */
    public int updateActivityParticipants(Long activityId);
} 